package cn.fboost.mtos.entity;

import lombok.Data;

import java.util.Date;

/**
 * 订单表
 */
@Data
public class Order {
    private Integer id;
    private String tradeNo;
    private String description;
    private String outTradeNo;
    private Integer userId;
    private Integer productId;
    private Integer quantity;
    private String remark;
    private Double amount;
    private String receiverName;
    private String receiverTelephone;
    private String receiverAddress;
    private String shipper;
    private String shipperTelephone;
    private Integer status;
    private Date createTime;
    private Date updateTime;

    public static class Status {
        public static final int UNPAID = 0;
        public static final int PAID = 1;
        public static final int CONFIRMED = 2;
        public static final int SHIPPING = 3;
        public static final int FINISHED = 4;
        public static final int CANCELED = 5;
        public static final int REFUNDING = 6;
        public static final int REFUNDED = 7;
        public static final int REFUND_FAILED = 8;
        public static final int CLOSED = 9;
    }
}
